#pragma once
#include "ActionItem.h"
#include "LoggedEvent.h"

class CRollbackAction :
	public IActionItem
{
	Q_OBJECT;
private:
	unsigned int m_diff;
	QString m_page;
public:
	bool Run();
	bool Complete();
	CRollbackAction(unsigned int diff, QString page);
	virtual ~CRollbackAction(void);
signals:
	void RollbackSucceeded(unsigned int diff);
	void RollbackFailed(unsigned int diff, QString errorCode, QString errorMessage);
	void EventPosted(CLoggedEvent* event);
};
